package cp3120.model;

/**
 *
 * @author Adam Scarr <scarr.adam@gmail.com>
 */
public class Airport {
    private int id;
    private String name;
    private float tax;

    public Airport() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getTax() {
        return tax;
    }

    public void setTax(float tax) {
        this.tax = tax;
    }

    public String toString() {
        return name;
    }

    public boolean equals(Object that) {
        if (that instanceof Airport) {
            return this.id == ((Airport)that).id;
        } else {
            return super.equals(that);
        }
    }
}
